<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>
<%@ page session="false" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h2>Create a Profile</h2>
	<sf:form method="POST" modelAttribute="user" action="create">
		<fieldset>
			<table cellspacing="0">
				<tr>
					<th><label for="username">Username:</label></th>
					<td><sf:input path="username" size="15" id="username"/><br/>
					<sf:errors path="username" cssClass="error"/></td>		
				</tr>
				<tr>
					<th><label for=firstName>Firstname:</label></th>
					<td><sf:input path="firstName" size="15" id="firstName"/><br/>
					<sf:errors path="firstName" cssClass="error"/></td>		
				</tr>
				<tr>
					<th><label for="lastName">Lastname:</label></th>
					<td><sf:input path="lastName" size="15" id="lastName"/><br/>
					<sf:errors path="lastName" cssClass="error"/></td>		
				</tr>
				<tr>
					<th><label for="email">Email:</label></th>
					<td><sf:input path="email" size="15" id="email"/><br/>
					<sf:errors path="email" cssClass="error"/></td>		
				</tr>
				<tr>
					<th><label for="password">Password:</label></th>
					<td><sf:input path="password" size="15" id="password"/><br/>
					<sf:errors path="password" cssClass="password"/></td>		
				</tr>
				<tr>
					<th><label for="confirmPassword">Confirm Password:</label></th>
					<td><sf:input path="confirmPassword" size="15" id="confirmPassword"/><br/>
					<sf:errors path="confirmPassword" cssClass="error"/></td>		
				</tr>
			</table>
		</fieldset>
		<input type="submit" value="Submit"/>
	</sf:form>
</body>
</html>